//package com.weseal.service.impl;
//
//import com.weseal.dao.BlacklistDao;
//import com.weseal.domain.Blacklist;
//import com.weseal.exception.BalcklistException;
//import com.weseal.form.BlacklistForm;
//import com.weseal.service.BlacklistService;
//import org.springframework.beans.BeanUtils;
//import org.springframework.stereotype.Service;
//
//
//@Service
//public class BlacklistServiceImpl implements BlacklistService {
//
////	@Autowired
//	private BlacklistDao blacklistDao;
//
//	@Override
//	public BlacklistVo selectByPrimaryKey(Long id) {
//		return null;
//	}
//
//	@Override
//	public int deleteByPrimaryKey(Long id) {
//		return 0;
//	}
//
//	@Override
//	public int save(BlacklistForm form) {
//		if (form == null) {
//			throw BalcklistException.BLACKLIST_IS_BLANK;
//		}
//		Blacklist target = blacklistDao.selectByUserId(form.getUserId());
//		Blacklist origin = form.convert2Domain();
//		if (target != null) {
//			BeanUtils.copyProperties(origin, target);
//			return blacklistDao.updateByPrimaryKeySelective(target);
//		} else {
//			return blacklistDao.insert(origin);
//		}
//	}
//
//	@Override
//	public int updateByPrimaryKeySelective(BlacklistForm record) {
//		return 0;
//	}
//}